<%@ page language="java" import="java.util.*,java.sql.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String noticeid =request.getParameter("Id");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>会议与通知</title>
    <style type="text/css"> 
<!-- 
a:link { 
font-size: 14px; 
color: #000000; 
text-decoration: none; 
} 
a:visited { 
font-size: 14px; 
color: #000000; 
text-decoration: none; 
} 
a:hover { 
font-size: 14px; 
color: #999999; 
text-decoration: underline; 
} 
--> 
</style>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
     <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BBD3EB">
   <%
   Class.forName("com.mysql.jdbc.Driver").newInstance(); 
String url="jdbc:mysql://localhost:3306/graduatedesign";  
String user="root";  
String password="root";  
Connection conn = DriverManager.getConnection(url, user, password); 
Statement sm=conn.createStatement();
ResultSet rs=sm.executeQuery("select title,content from notices where id="+noticeid);
%>
<% 
while(rs.next()){
    %>

                          	<tr>
                            	<td height="27" align="center" background="/OA/admin/images/index1_72.gif" bgcolor="#FFFFFF">标题</td>
                            	<td bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;<%=rs.getString(1) %></td>
    						</tr>
                         	<tr>
                            	<td height="27" align="center" background="/OA/admin/images/index1_72.gif" bgcolor="#FFFFFF">内容</td>
                            	<td bgcolor="#FFFFFF"  valign="top">&nbsp;&nbsp;&nbsp;<%=rs.getString(2) %>
								</td>
    						</tr>
    						</table>  
    						<%} %>
  </body>
</html>
